using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Tongiao.Entity
{
                

     public class Tg_ProductsEntity:AF_ORM.CORE.BaseEntity
    {
         public Tg_ProductsEntity()
         {
             tableName = "Tg_Products";


			 fieldInfos.Add(new FieldInfo("Tg_Products","CategoryId","CategoryId","Guid",0,false,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","CreatedBy","CreatedBy","string",50,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","Id","Id","Guid",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","Packages","Packages","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","Photo","Photo","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","Price","Price","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","ProductCode","ProductCode","string",50,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","ProductName","ProductName","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","Specification","Specification","string",-1,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","Title","Title","string",-1,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","UpdatedBy","UpdatedBy","string",512,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("Tg_Products","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected Guid m_CategoryId;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected Guid m_Id;
		 protected string m_Packages;
		 protected string m_Photo;
		 protected double m_Price;
		 protected string m_ProductCode;
		 protected string m_ProductName;
		 protected string m_Specification;
		 protected string m_Title;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public Guid CategoryId

          { 
                get { 
                    return m_CategoryId;}

                set{m_CategoryId=value;

                    GetField("CategoryId").Set();
                    GetField("CategoryId").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public Guid Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public string Packages

          { 
                get { 
                    return m_Packages;}

                set{m_Packages=value;

                    GetField("Packages").Set();
                    GetField("Packages").IsNull=(value == null);           
                    }
          }
		 public string Photo

          { 
                get { 
                    return m_Photo;}

                set{m_Photo=value;

                    GetField("Photo").Set();
                    GetField("Photo").IsNull=(value == null);           
                    }
          }
		 public double Price

          { 
                get { 
                    return m_Price;}

                set{m_Price=value;

                    GetField("Price").Set();
                    GetField("Price").IsNull=(value == null);           
                    }
          }
		 public string ProductCode

          { 
                get { 
                    return m_ProductCode;}

                set{m_ProductCode=value;

                    GetField("ProductCode").Set();
                    GetField("ProductCode").IsNull=(value == null);           
                    }
          }
		 public string ProductName

          { 
                get { 
                    return m_ProductName;}

                set{m_ProductName=value;

                    GetField("ProductName").Set();
                    GetField("ProductName").IsNull=(value == null);           
                    }
          }
		 public string Specification

          { 
                get { 
                    return m_Specification;}

                set{m_Specification=value;

                    GetField("Specification").Set();
                    GetField("Specification").IsNull=(value == null);           
                    }
          }
		 public string Title

          { 
                get { 
                    return m_Title;}

                set{m_Title=value;

                    GetField("Title").Set();
                    GetField("Title").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
